home *** CD-ROM | disk | FTP | other *** search
/ Almathera Ten Pack 2: CDPD 1 / Almathera Ten on Ten - Disc 2: CDPD 1.iso / pd / 076-100 / 079 / sharedlib / makefile < prev    next >
Makefile  |  1995-03-13  |  2KB  |  56 lines

  1. # makefile    James M Synge    26-May-1987
  2. #
  3. # Used to build the shared library (task.library) and the
  4. # interface library (task.lib).  Note that the shared
  5. # library is like a complete program in that it is linked,
  6. # while the interface library is just an object file which
  7. # can be included on some other programs linkage line.
  8. #
  9. # Example: ln prog.o -ltask -lc
  10. #
  11. # This example places task.lib earlier in the link than
  12. # c.lib.  Therefore, any routine in task.lib of the same
  13. # name as a routine in c.lib will be loaded instead of the
  14. # routine in c.lib.  This is useful because it allows us to
  15. # replace any routine in c.lib.
  16. #
  17. # Note that these FLAGS macros are only used for making the
  18. # shared library, not the test program nor the interface
  19. # library.
  20.  
  21. CFLAGS = +BCDLP
  22. AFLAGS = -CD
  23.  
  24. LIBOBJ = LibHead.o Library.o Task_Routines.o \
  25.      FunctionList.o Interface.o
  26.  
  27. ALL =    LibHead.asm Library.c ExtLibrary.h Task_Routines.c FunctionList.c \
  28.     Interface.asm Protect.i 2tasks.c task_lib.asm Makefile
  29.  
  30. all:    task.library task.lib 2Tasks
  31.  
  32. task.library : $(LIBOBJ)
  33.     ln -o task.library $(LIBOBJ) -lcl32
  34. #    You may wish to add a command like this:
  35. #    copy task.library LIBS:
  36.  
  37. LibHead.o : LibHead.asm
  38.  
  39. Interface.o : Interface.asm Protect.i
  40.  
  41. Library.o : ExtLibrary.h
  42.  
  43. task.lib : task_lib.asm
  44.     as $(AFLAGS) -o task.lib task_lib.asm
  45. #    You may wish to add a command which moves the file
  46. #    to the directory where you keep c.lib, etc.
  47.  
  48. 2Tasks    : 2Tasks.o task.lib
  49.     ln 2Tasks.o -ltask -lc
  50.  
  51. 2Tasks.o : 2Tasks.c
  52.     cc 2Tasks.c
  53.  
  54. ram:sharfile : $(ALL)
  55.     shar > ram:sharfile -vc $(ALL)
  56.